<?
session_start();

$nome = $_GET['nome'];
$senha = $_GET['senha']; 

$_SESSION['nome2'] = $nome;
$_SESSION['senha2'] = $senha;



if (($nome == "admin") && ($senha == "123")){
		$_SESSION['logpainel'] = "2";
		echo "<meta HTTP-EQUIV='Refresh' CONTENT='0;URL=painel.php'>";
}else{
		echo "<meta HTTP-EQUIV='Refresh' CONTENT='0;URL=index.php'>";
}

?>